using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;

namespace SimpleFramework
{
    public interface ILoader
    {
        public string Url { get; set; }

        public object UserData { get; set; }

        public ulong FileSize { get; set; }

        public ulong downloadedBytes { get; }

        public int TryCount { get; set; }

        public UnityEvent<ILoader, float> onProgress { get; }

        public UnityEvent<ILoader, string> onFailure { get; }

        void Abort();
    }
}